import { createApp } from 'vue'
import App from './App.vue'
import 'element-plus/dist/index.css'

import router from './router/index'
import animate from 'animate.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { instance, request } from './Utils/AxiosInstance'

const app = createApp(App)
//elementplus国际化
app.use(ElementPlus, {
  locale: zhCn,
})

//@ts-ignore
app.use(animate)
app.use(router)


app.config.globalProperties.$http = instance
app.config.globalProperties.request = request
app.mount('#app')